package com.sss.hloster0502;

import java.util.Scanner;

public class EndingThread {

	public static void main(String[] args) {
		CountThread t = new CountThread();
		t.start();
		Scanner sc = new Scanner(System.in);
		System.out.println("如果想终止输入计数线程，请输入   s  ");
		while (true) {
			String s = sc.nextLine();
			if (s.equals("s")) {
				t.stopIt();
				break;
			}
		}
	}

}
